#include "mainwindow.h"
#include "ui_mainwindow.h"

using namespace cv;
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    Mat src(cv::Size(800,600),CV_8SC3,Scalar::all(0));
    cv::circle(src,cv::Point(400,300),200,Scalar(0,255,0),-1);
    if (!src.empty())
        imshow("src",src);
}
